home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Guitar / Fir3UG.README < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.1 KB  |  25 lines

  1. /*  Copyright (c) 1992 - Rick A. Vander Kam - All rights reserved */
  2. Description of the Fir3 Unit Generator.
  3.  
  4. This unit generator implements a three-point FIR filter section in direct form.  The filter output is given as output = bb0*(input) + bb1*(once-delayed input) + bb2*(twice-delayed input).  For the guitar synthesizer, the "bb0" and "bb2" coefficients are always equal (for a linear phase response), and they are set by the "a0" timbre slider on the control panel.  The "bb1" coefficient is set by the "a1" slider.
  5.  
  6. METHODS
  7. =========
  8.  
  9. - setOutput:aPatchPoint
  10.      Used to connect the unit generator's output to aPatchPoint
  11.  
  12. -setInput:aPatchPoint
  13.      Used to connect the unit generator's input to aPatchPoint
  14.  
  15. - setBb0:aDouble
  16.      Used to set the bb0 coefficient to aDouble  (-1.0 to 0.999999)
  17.  
  18. - setBb1:aDouble
  19.      Used to set the bb1 coefficient to aDouble  (-1.0 to 0.999999)
  20.  
  21. - setBb2:aDouble
  22.      Used to set the bb2 coefficient to aDouble  (-1.0 to 0.999999)
  23.  
  24. - clear
  25.      Used to clear the filter state.  Forces the stored values for the once- and twice-delayed input to be zero.